/*
 * Copyright 2023-2085 xujin <ceo@itgrail.com>
 *
 * Licensed under the Grail License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * https://itgrail.com/docs?id=3&catalogId=87
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.itgrail.pilot.infrastructure.tunnel.db.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

import static com.baomidou.mybatisplus.annotation.IdType.AUTO;


@TableName("t_key_comment")
@Data
public class KeyCommentDO {

    /**
     * 主键
     */
    @TableId(value = "id", type = AUTO)
    private Integer id;

    /**
     * keyId
     */
    @TableField(value = "key_id")
    private Integer keyId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 用户评分
     */
    @TableField(value = "user_score")
    private String userScore;

    /**
     * 领导id
     */
    @TableField(value = "leader_id")
    private Integer leaderId;

    /**
     * 领导评分
     */
    @TableField(value = "leader_score")
    private String leaderScore;

    /**
     * 记录创建时间，默认当前时间
     */
    @TableField(value = "create_time")
    private Timestamp createTime;

    /**
     * 记录更新时间，默认当前时间
     */
    @TableField(value = "update_time")
    private Timestamp updateTime;

    /**
     * 是否删除 0 未删除 1 删除 默认是0
     */
    @TableField(value = "deleted")
    private Byte deleted;

    /**
     * 创建人
     */
    @TableField(value = "created")
    private Integer created;

    /**
     * 更新人
     */
    @TableField(value = "updated")
    private Integer updated;

    @TableField(value = "leader_comment")
    private String leaderComment;

    @TableField(value = "user_comment")
    private String userComment;

    @TableField(value = "leader_name")
    private String leaderName;

    @TableField(value = "user_name")
    private String userName;

    @TableField(value = "plan_comment")
    private String planComment;

}
